<!DOCTYPE html>
<html>
<head>
<title>中国建设银行 企业网上银行</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--第二步：css文件嵌入(示具体情况而定引用文件)-->
<link href="/css6/ccb6.css"
	
	rel="stylesheet" type="text/css" />
<!--第三步：js文件嵌入(示具体情况而定引用文件)-->
<script language="javascript" src="/js6/ccb6.js"
	></script>
<script language="javascript" src="/js6/jh6.js"
	></script>


<script>
	function getDate() {
		var now = new Date();
		var yy = now.getYear();
		var mm = now.getMonth() + 1;
		var dd = now.getDate();
		var hh = now.getHours();
		var mm1 = now.getMinutes();
		var ss = now.getSeconds();
		return getmyselfDate(hh) + "" + getmyselfDate(mm1) + ""
				+ getmyselfDate(ss) + "";
	}

	function getmyselfDate(a) {
		if (a < 10) {
			return "0" + a;
		}
		return a;
	}

	function Prints() {
		var print_id = new Array();
		print_id[0] = 'rstable';
		window.print();
	}

	function check() {

		return true;

	}

	function loadSmallWindow(obj)

	{

		var div = document.getElementById("selectDownLoadDiv");

		if (div.style.display == "")

		{

			div.style.display = "none";

		}

		else

		{

			div.style.display = "";

		}

		/**根据实际情况控制提示div的位置*/

		div.style.top = obj.offsetTop - 40;

		div.style.left = obj.offsetLeft;

	}

	function submitSelect()

	{

		var div = document.getElementById("selectDownLoadDiv");

		onSelectRadiobutton(div);

	}

	function onSelectRadiobutton(divObj)

	{

		var count = 0;

		var radioB = document.getElementsByName("radiobutton");

		for (var i = 0; i < radioB.length; i++)

		{

			if (radioB[i].checked)

			{

				var radioValue = radioB[i].value;

				count += 1;

				if (count > 1)

				{

					alert("只能选择一种下载方式");

					return false;

				}

			}

		}

		if (radioValue == "2")

		{

			// alert("调用xls方式js函数-----下载");//在此处调用excel方式下载函数

			download2();

		}

		else if (radioValue == "1")

		{

			// alert("调用txt方式js函数-----下载");//在此处调用Txt方式下载函数
			document.forms[0].target = 'result1';
			document.all.clientFileName.value = "余额查询结果下载.txt";

			location.href = 'test.rar'/*tpa=https://b2bstatic.ccb.com/V6/Demo_b2b_new/webpage_demo/account/test.rar*/;
			document.forms[0].target = '';
		}

		else

		{

			// alert("Excle-----下载");//在此处调用excel方式下载函数
			document.all.DOWNLOAD_TYPE.value = "ECTIPDOWNLOADEXCEL";
			var filedownaccont = '05502500020006373';
			var filedowntime = getDate();
			var filedownname = filedowntime + ".xls";
			document.all.clientFileName.value = filedownname;
			// document.all.clientFileName.value="明细查询结果.csv";
			document.forms[0].target = '';
			//   TxtSubmit('TXCODE|','610102|',AA);
			location.href = 'test.rar'/*tpa=https://b2bstatic.ccb.com/V6/Demo_b2b_new/webpage_demo/account/test.rar*/;
			document.forms[0].target = '';
			document.all.clientFileName.value = "";
			//alert("Excel---end");

		}

		divObj.style.display = "none";

		for (var i = 0; i < radioB.length; i++)

		{

			radioB[i].checked = false;

		}

	}

	function download2() {

		document.all.clientFileName.value = "余额查询结果下载.csv";

		// document.all.TXCODE.value="610102";
		document.forms[0].target = 'result1';
		//TxtSubmit('TXCODE|','610102|',AA);
		location.href = 'test.rar'/*tpa=https://b2bstatic.ccb.com/V6/Demo_b2b_new/webpage_demo/account/test.rar*/;
		document.forms[0].target = '';
		//document.forms[0].submit();

	}

	function js_error() {

		document.forms[0].target = "";
		document.forms[0].submit();

	}
</script>



<script>
	var s97;
	var s330;
	var s332;
	var s200;
	var num = 6;
</script>





</head>



<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
	onLoad="commonLoads();" onUnload="commonUnloads();"
	onbeforeunload="commonBeforeUnloads();">

	<script language="javascript">
		showHead();
	</script>

	<form name="jhform"
		Action="javascript:if(confirm('https://b2bstatic.ccb.com/NCCB/B2BMainPlat?SKEY=yUQQ6K&CUSTOMERID=P9090  \n\n该文件无法用 Teleport Ultra 下载, 因为 它是一个域或路径外部被设置为它的启始地址的地址。  \n\n你想在服务器上打开它?'))window.location='https://b2bstatic.ccb.com/NCCB/B2BMainPlat?SKEY=yUQQ6K&CUSTOMERID=P9090'"
		tppabs="https://b2bstatic.ccb.com/NCCB/B2BMainPlat?SKEY=yUQQ6K&CUSTOMERID=P9090"
		method="POST" onSubmit="return go()">


		<script language=javascript>
			var tt = num - 2;
			var tt2 = num - 1;
		</script>
		<script language="javascript">
			showTXHead("账户余额查询结果", "");
		</script>

		<table class="ccb_table_normal" cellpadding="0" cellspacing="0"
			border="0" width="100%" name='rsTable' id='rsTable'>

			<thead>

				<script language=javascript>
					document
							.write("<th nowrap colspan="+num+"> 账户余额查询结果 </th>");
				</script>

			</thead>

			<thead>
				<th nowrap>账号</th>
				<th nowrap>账户名称</th>
				<th nowrap>币种</th>
				<th nowrap>行别</th>
				<th nowrap>账面余额</th>
				<th nowrap>冻结金额</th>
				<th nowrap>可用余额</th>
				<th nowrap>本日存入金额</th>
				<th nowrap>本日支取金额</th>
				<th nowrap>账户状态</th>
				<th nowrap>账户控制状态</th>
				<th nowrap>>></th>
			</thead>

			<tr>
				<td nowrap align="center"><a href="#">12050165500000000997</a></td>
				<td nowrap align="left">天津国脉电信设备销售有限公司</td>
				<td nowrap align="left">人民币元</td>
				<td nowrap align="left">中国建设银行</td>
				<td nowrap align="right"><script>
					FormatAmt('471817.97')
				</script></td>
				<td nowrap align="right"><script>
					FormatAmt('.00')
				</script></td>
				<td nowrap align="right"><script>
					FormatAmt('471817.97')
				</script></td>
				<td nowrap align="right"><script>
					FormatAmt('.00')
				</script></td>
				<td nowrap align="right"><script>
					FormatAmt('.00')
				</script></td>
				<td nowrap align="left">正常</td>
				<td nowrap align="left">正常</td>
				<td nowrap align="left"></td>
			</tr>
			<tr>
				<td nowrap align="center">小计</td>
				<td nowrap align="left"></td>
				<td nowrap align="left">人民币元</td>
				<td nowrap align="left"></td>
				<td nowrap align="right"><script>
					FormatAmt('471817.97')
				</script></td>
				<td nowrap align="right"><script>
					FormatAmt('.00')
				</script></td>
				<td nowrap align="right"><script>
					FormatAmt('471817.97')
				</script></td>
				<td nowrap align="right"><script>
					FormatAmt('.00')
				</script></td>
				<td nowrap align="right"><script>
					FormatAmt('.00')
				</script></td>
				<td nowrap align="left"></td>
				<td nowrap align="left"></td>
				<td nowrap align="left"></td>
			</tr>

		</table>

		<br> <input TYPE="hidden" NAME="SKEY" VALUE='yUQQ6K'> <input
			TYPE="hidden" NAME="CUSTOMERID" VALUE='P9090#01'> <input
			TYPE="hidden" NAME="USERID" VALUE='999999'> <input
			type="hidden" name="clientFileName" value="XXXX.csv"> <input
			type="hidden" name="DLFROMTXCODE" value="610302"> <input
			type="hidden" name="DOWNLOAD_TYPE" value="ECTIPDOWNLOADEXCEL">



		<input type="hidden" name="ACCNO" value='05502500020006373'> <input
			type="hidden" name="ACCNO" value='05510600239025060'> <span
			id=AA></span>
	</form>
	<div class="form_do">
		<input type="button" name="Submit2" value="打印当前页"
			class="button_lessThan8" onClick="Prints();">

		<div id="selectDownLoadDiv" align="center"
			style="width: 115px; height =70px; display: none; background-color: #E7ECF1; boder-collapse: collapse; border-color: #B86D6D; border-style: solid; border-width: 1px; position: absolute; z-index: 100">

			<br> <font color="B87273">请选择下载方式：</font><br> <input
				type="checkbox" name="radiobutton" value="1"
				onClick="submitSelect()"> Txt&nbsp;&nbsp;下载<br> <input
				type="checkbox" name="radiobutton" value="2"
				onClick="submitSelect()"> Csv&nbsp;&nbsp;下载<br> <input
				type="checkbox" name="radiobutton" value="3"
				onClick="submitSelect()">Excel&nbsp;下载
		</div>

		<input type="button" name="button" class="button_lessThan8"
			value="下载当前页" onclick="javascript:loadSmallWindow(this);"> <input
			type="button" name="Submit4" value="返 回" class="button_lessThan4"
			onClick="Back(-1)">
	</div>




	<script language="javascript">
		showFooter();
	</script>
	<iframe name="result1" width="0" height="0" scrolling="no"
		frameborder="0" class="ifbody" src="/../../V5/STY3/CN/blank.html"
		tppabs="https://b2bstatic.ccb.com/V5/STY3/CN/blank.html"> </iframe>
</body>

</html>